package com.joysuch.wwyt.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.api.entity.ApiAlarmSubscribe;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zqw
 * @since 2022-06-07
 */
public interface ApiAlarmSubscribeMapper extends BaseMapper<ApiAlarmSubscribe> {

    List<ApiAlarmSubscribe> findUnsubscribedDatas();

    ApiAlarmSubscribe findByAlarmTypeAndUrl(@Param("type") String alarmType, @Param("url") String url, @Param("orgCode") String orgCode, @Param("tenentId") Long tenentId);
}
